package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单详情信息
 * </p>
 *
 * @author qubaofeng
 * @since 2025-02-16
 */
@Getter
@Setter
@TableName("ding_dan_detail")
public class DingDanDetail extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单id
     */
    private Long dingDanId;

    /**
     * 货品id
     */
    private Long huoPinId;


    @TableField(exist = false)
    private String huoPinName;

    @TableField(exist = false)
    private BigDecimal huoPinPrice;

    @TableField(exist = false)
    private Long cangKuId;

    @TableField(exist = false)
    private String cangKuName;

    @TableField(exist = false)
    private String dangKouName;

    @TableField(exist = false)
    private LocalDate riQi;

    @TableField(exist = false)
    private String shiJian;

    @TableField(exist = false)
    private HuoPin huoPin;

    private BigDecimal buyCount;

    private BigDecimal realBuyCount;

    /** 退货标志(0:正常; 1:退货)**/
    private Integer tuiHuo;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

}
